<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8" />
</head>
<body>
    <div th:fragment="editBlock" class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="display: none">

        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                            aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title" id="myModalLabel"></h4>
                </div>
                <form id="editform" class="modal-body" action="#" >
                    <input type="hidden" name="guid"  />
                    <div class="form-group">
                        <label class="form-label" th:for="areaGuid" >区域</label>
                        <select name="areaGuid"  class="form-control">
                            <option value="">请选择</option>
                            <option th:each="area:${formBean.areaList}"
                                    th:value="${area.guid}"
                                    th:text="${area.areaName}"
                                    th:selected="${area.guid} == ${formBean.areaGuid}? 'selected' : '#'"></option>
                        </select>
                        <span  class="has-error"  id="areaGuid_errorMsg"/>
                    </div>
                    <div class="form-group">
                        <label class="form-label" th:for="provinceGuid" >省份</label>
                        <select name="provinceGuid"  class="form-control">
                            <option value="">请选择</option>
                            <option th:each="province:${formBean.provinceList}"
                                    th:value="${province.guid}"
                                    th:text="${province.provinceName}"
                                    th:selected="${province.guid} == ${formBean.provinceGuid}? 'selected' : '#'"></option>
                        </select>
                        <span  class="has-error"  id="provinceGuid_errorMsg"/>
                    </div>
                    <div class="form-group">
                        <label class="form-label" th:for="cityGuid" >城市</label>
                        <select name="cityGuid"  class="form-control">
                            <option value="">请选择</option>
                            <option th:each="city:${formBean.cityList}"
                                    th:value="${city.guid}"
                                    th:text="${city.cityName}"
                                    th:selected="${city.guid} == ${formBean.cityGuid}? 'selected' : '#'"></option>
                        </select>
                        <span  class="has-error"  id="cityGuid_errorMsg"/>
                    </div>
                    <div class="form-group">
                        <label class="form-label" th:for="estateGuid" >小区</label>
                        <select name="cityGuid"  class="form-control">
                            <option value="">请选择</option>
                            <option th:each="estate:${formBean.estateList}"
                                    th:value="${estate.guid}"
                                    th:text="${estate.estateName}"
                                    th:selected="${estate.guid} == ${formBean.estateGuid}? 'selected' : '#'"></option>
                        </select>
                        <span  class="has-error"  id="estateGuid_errorMsg"/>
                    </div>

                    <div class="form-group">
                        <label  class="form-label" th:for="sfGuid" >房源SF-GUID</label>
                        <input type="text"  name="sfGuid"  class="form-control"/>
                        <span  class="has-error"  id="sfGuid_errorMsg"/>
                    </div>
                    <div class="form-group">
                        <label  class="form-label" th:for="sapKey" >SAP-KEY</label>
                        <input type="text"  name="sapKey"  class="form-control"/>
                        <span  class="has-error"  id="sapKey_errorMsg"/>
                    </div>
                    <div class="form-group">
                        <label  class="form-label" th:for="houseName" >房源名称</label>
                        <textarea  name="houseName"  class="form-control" th:inline="text"/>
                        <span class="has-error" id="houseName_errorMsg"/>
                    </div>
                </form>
                <div class="modal-footer">
                    <button type="button" class="model-btn" data-dismiss="modal">关闭</button>
                    <button type="button" class="model-btn" th:onclick="'javascript:formSave(\'houses\');'">保存</button>
                </div>
            </div>
        </div>
    </div>

</body>
</html>